<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>{$main_title}</h2>
	</div>
	<div class="tab-wrap">
		<ul class="tab-nav nav">
			<li data-tab="tab1" class="{$tabNav.tab1|default='current'}"><a href="javascript:void(0);">基 础</a></li>
			
		</ul>
		<div class="tab-content">
			<form action="__SELF__" method="post" class="form-horizontal">
				<!-- 基础 -->
				<div id="tab1" class="tab-pane {$tabNav.tab1|default='in'}  tab1">
					<div class="form-item">
						<label class="item-label">
						<em class="must">*</em>姓名<span class="check-tips">（姓名不能为空）</span></label>
						<div class="controls">
							<input type="text" class="text input-large" name="nickname"  value="{$info.nickname|default=''}"/>
						</div>
					</div>
					<div class="form-item">
						<label class="item-label">性别<span class="check-tips"></span>
						</label>
						<div class="controls">
							<label class="inline radio"><input type="radio" name="sex" data-value="{$info.sex}" value="1" checked>男</label>
							<label class="inline radio"><input type="radio" name="sex" data-value="{$info.sex}" value="0">女</label>
						</div>
					</div>
					<div class="form-item">
						<label class="item-label">
							手机
						</label>
						<div class="controls">
							<input type="text" name="mobile" class="text input-large" value="{$info.mobile|default=''}">
						</div>
					</div>
				
	
					<div class="form-item">
						<label class="item-label">住址</label>
						<div class="controls">
							<input type="text" name="address" class="text input-large" value="{$info.address|default=''}">
						</div>
					</div>
					<div class="form-item">
						<label class="item-label">籍贯</label>
						<div class="controls">
							<input type="text" name="hometown" class="text input-large" value="{$info.hometown|default=''}">
						</div>
					</div>
					
				</div>
				
				

				<div class="form-item">
					<input type="hidden" name="uid" value="{$info.uid|default=''}">
					<button type="submit" id="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
					<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
			</form>
		</div>
	</div>
</block>

<block name="script">
	<script type="text/javascript">
		Think.setValue("allow_publish", {$info.allow_publish|default=1});
		Think.setValue("check", {$info.check|default=0});
		Think.setValue("model[]", {$info.model|json_encode} || [1]);
		Think.setValue("type[]", {$info.type|json_encode} || [2]);
		Think.setValue("display", {$info.display|default=1});
		Think.setValue("reply", {$info.reply|default=0});
		Think.setValue("reply_model[]", {$info.reply_model|json_encode} || [1]);
		Think.setValue("reply_type[]", {$info.reply_type|json_encode} || [2]);
		$(function(){
			showTab();
			showSelect();
			showRadio();
			$("input[name=reply]").change(function(){
				var $reply = $(".form-item.reply");
				parseInt(this.value) ? $reply.show() : $reply.hide();
			}).filter(":checked").change();
		});
		//导航高亮
		$('.side-sub-menu').find('a[href="{:U('Category/index')}"]').closest('li').addClass('current');
	</script>
</block>
